﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>跟进历史管理</title>
    <#include "../common/link.ftl">
    <script>
        $(function () {
            $('.btn_delete').click(function () {
                var id = $(this).data('id');
                $.messager.confirm('警告', '亲, 确定要删除吗?', function () { //点击确定后的回调函数
                    // 发异步请求(跳转页面的操作交给前端来做)
                    $.get('/customertransferservice/delete.do', {id: id}, handlerMessage)
                })
            })

            $('.btn-input').click(function () {
                $("editForm input").val('');
                var json = $(this).data("json");
                if (json) {
                    $("#name").val(json.name);
                    $("#sn").val(json.sn);
                }
                $('#myModal').modal('show')
            })

            $(".btn-submit").click(function () {
                $("#editForm").ajaxForm(handlerMessage);
            })

        })
    </script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <#include "../common/navbar.ftl">
    <!--菜单回显-->
<#--<c:set var="currentMenu" value="customertransferservice"/>-->
    <#assign currentMenu="customerTransfer"/>
    <#include "../common/menu.ftl">
    <div class="content-wrapper">
        <section class="content-header">
            <h1>部门管理</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <div style="margin: 10px;">
                    <form class="form-inline" id="searchForm" action="/customerTransfer/list.do" method="post">
                        <input type="hidden" name="currentPage" id="currentPage" value="1">
                        <div class="form-group">
                            <label for="keyword">关键字:</label>
                            <input type="text" class="form-control" id="keyword" name="keyword" value="${qo.keyword!}"
                                   placeholder="请输入姓名/电话">
                        </div>
                        <button id="btn_query" class="btn btn-primary">
                            <span class="glyphicon glyphicon-search"></span> 查询
                        </button>
                    </form>
                </div>
                <!--编写内容-->
                <div class="box-body table-responsive no-padding ">
                    <table class="table table-hover table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>客户姓名</th>
                            <th>操作日期</th>
                            <th>操作人</th>
                            <th>旧营销人员</th>
                            <th>新营销人员</th>
                            <th>移交原因</th>
                        </tr>
                        <#list pageInfo.list as customertransferservice>
                            <tr>
                                <td>${customertransferservice_index + 1}</td>
                                <td>${(customertransferservice.customer.name)!}</td>
                                <td>${(customertransferservice.operateTime?string("yyyy-MM--dd")!)}</td>
                                <td>${(customertransferservice.operator.name)!}</td>
                                <td>${(customertransferservice.oldSeller.name)!}</td>
                                <td>${(customertransferservice.newSeller.name)!}</td>
                                <td>${(customertransferservice.reason)!}</td>
                            </tr>
                        </#list>
                    </table>
                    <!--分页-->
                    <#include "../common/page.ftl">
                </div>
            </div>
        </section>
    </div>
    <#include "../common/footer.ftl">
</div>
</body>
</html>
